/*
 * @(#)HillClimbingResult.java 1.0 17/11/13
 * 
 * Clase Compartida
 * PROP Grupo 13 Cluster 3
 */
package dominio;

import java.util.ArrayList;

/**
 * Created by Rafael Simon Garcia on 11/17/13.
 */
public class HillClimbingResult {

    public int iterations, score;
    public ArrayList<Integer> tour;

    //Constructor receiving, the iterations, score and the tour of this solution
    public HillClimbingResult(int i, int s, ArrayList<Integer> t){
        this.iterations = i;
        this.score = s;
        this.tour = new ArrayList<>(t);
    }


    //returns the result of checking if thiz HillClimbingResult has a least negative score than another HCR
    public boolean IsBetter(HillClimbingResult other){ return (this.score > other.score); }
}
